package com.bdqn.mapper;

import com.bdqn.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    /**
     * 修改供应商信息
     *
     * @param supplier
     * @return
     */
    boolean update(Supplier supplier);

    List<Supplier> getPageList(@Param("supplier") Supplier supplier, @Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);

    int count(@Param("supplier") Supplier supplier);

    List<Supplier> getSupName();

    /**
     * 根据Id查询信息
     *
     * @param id
     * @return
     */
    Supplier queryId(Integer id);

    int delete(Integer supId);

    int add(Supplier supplier);
}
